interface IVLOption {
  label: string
  value: string
}
export const hazardLevelOptions: IVLOption[] = [
  {
    value: '1',
    label: '超危'
  },
  {
    value: '2',
    label: '高危'
  },
  {
    value: '3',
    label: '中危'
  },
  {
    value: '4',
    label: '低危'
  }
]

export const dateType: IVLOption[] = [
  {
    value: 'publishTime',
    label: '收录时间'
  },
  {
    value: 'updateTime',
    label: '更新时间'
  }
]
export const getLabelList = (value: string | number | undefined, list: IVLOption[]): string => {
  return list.find((v) => v.value == value)?.label || '无'
}
